package com.xuzhao.controller;

import com.xuzhao.config.PersonProperties;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;


/**
 * Created by xz on 2017/9/4.
 */
@RestController
public class Hello {
    @Value("${name}")
    private String name;
    @Value("${age}")
    private Integer age;
    @Value("${content}")
    private String content;


    @Autowired
    private PersonProperties person;
    @GetMapping(value = {"/test/hi","/t1"})
    public String say(){
        return "name = "+name+",age = "+age+",content = "+content+" person,---->"+person;
    }
}
